package com.zbowen.seata.provider.web;

import com.zbowen.seata.provider.api.AccountProviderApi;
import com.zbowen.seata.provider.api.dto.AccountDto;
import com.zbowen.seata.provider.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController implements AccountProviderApi {

    @Autowired
    private DemoService demoService;

    public String updateAccountBala(AccountDto dto) {
        demoService.test(dto.getAccount());
        return "success";
    }
}
